package cn.zysheep.command;

/**
 * @ClassName: Client
 * @Description: 命令模式
 * @Author: lyw
 * @Date: 2022/10/31 23:21
 */
public class Client {
    public static void main(String[] args) {
        // invoker：请求的调用者。触发命令的类。
        AppInvoker appInvoker = new AppInvoker();
        // receiver：请求的接收者。负责执行与命令关联操作类
        AppReceiver appReceiver = new AppReceiver();
        WorkFlowCommand workFlowCommand = new WorkFlowCommand(appReceiver);
        appInvoker.setCommand(workFlowCommand);
        appInvoker.doCommand();

    }
}
